@import "@/styles/custom.scss";
.content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
}
.group {
  width: 320px;
  height: 100%;
  padding: 0 15px;
  margin-right: 10px;
  background: #ffffff;
  border-radius: 5px;
  .header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 50px;
    font-family: PingFangSC-bold;
    line-height: 50px;
    color: rgb(84 188 189 / 100%);
    text-align: left;
    border-bottom: 1px solid rgb(206 206 206 / 100%);
    .handler {
      display: flex;
      align-items: center;
      .showCode {
        display: flex;
        align-items: center;
        font-size: 12px;
        .showCodeLabel {
          margin-left: 5px;
        }
      }
    }
  }
  .tree {
    box-sizing: border-box;
    width: 100%;
    height: calc(100% - 50px);
    padding: 10px 0;
    overflow-y: auto;
  }
}
.main {
  display: flex;
  flex: 1;
  flex-flow: column;
  width: 0;
  height: 100%;
  background: #ffffff;
  border-radius: 5px;
  .header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 50px;
    padding: 0 15px;
    font-family: PingFangSC-bold;
    line-height: 50px;
    color: $group-color;
    text-align: left;
    border-bottom: 1px solid rgb(206 206 206 / 100%);
    .refresh {
      display: flex;
      align-items: center;
      font-size: 12px;
      cursor: pointer;
    }
  }
  .table-box {
    box-sizing: border-box;
    display: flex;
    flex: 1;
    flex-flow: column;
    width: 100%;
    padding: 20px 20px 0;
  }
  .roomList {
    display: grid;
    flex: 1;
    grid-template-rows: repeat(auto-fill, 180px);
    grid-template-columns: repeat(auto-fill, 120px);
    grid-gap: 20px;
    width: 100%;
    height: 0;
    padding: 0 0 20px;
    overflow-y: auto;
    .room {
      position: relative;
      box-sizing: border-box;
      display: flex;
      flex-flow: column;
      justify-content: space-between;
      width: 120px;
      height: 180px;
      padding: 10px;
      margin: 0 auto;
      background: var(--el-color-info);
      border: 1px solid #eeeeee;
      border-radius: 10px;
      opacity: 0.7;
      .checkedIn {
        position: absolute;
        right: 15px;
        bottom: 24px;
        width: 36px;
        height: 36px;
      }
      .powerLow {
        position: absolute;
        bottom: 24px;
        left: 15px;
        width: 24px;
        height: 24px;
      }
      .roomHeader {
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-size: 12px;
        color: #ffffff;
        .roomHeader__con {
          display: flex;
          align-items: center;
          justify-content: space-between;
          width: 100%;
        }
      }
      .power {
        position: relative;
        box-sizing: border-box;
        width: 24px;
        height: 12px;
        padding: 1px;
        border: 1px solid #ffffff;
        border-radius: 2px;
        &::after {
          position: absolute;
          top: 2px;
          right: -3px;
          width: 2px;
          height: 6px;
          content: "";
          background: #ffffff;
          border-radius: 5px;
        }
        .powerNo {
          line-height: 8px;
          color: #ffffff;
          text-align: center;
          transform: scale(0.8);
        }
        .powerInner {
          width: 0;
          height: 100%;
          margin-top: -8px;
          text-align: center;
          background: rgb(255 255 255 / 40%);
        }
      }
      .onlineStatus {
        flex: 1;
        font-size: 12px;
        line-height: 20px;
        color: #ffffff;
        text-align: right;
      }
      .door {
        position: relative;
        box-sizing: border-box;
        display: -webkit-box;
        width: 100px;
        height: 120px;
        padding: 20px 10px 0;
        margin: 10px auto;
        overflow: hidden;
        overflow: initial;
        font-size: 14px;
        line-height: 1.5;
        color: #ffffff;
        text-align: center;
        text-overflow: ellipsis;
        border: 1px solid #ffffff;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        .doorInner {
          position: absolute;
          top: 0;
          left: 0;
          box-sizing: border-box;
          width: 96px;
          height: 118px;
          padding: 0 20px;
          border: 1px solid #ffffff;
          transform-origin: left;
          .doorNo {
            padding: 20px 0;
            margin: 0 auto;
            word-break: break-all;
          }
          .doorHandler {
            position: absolute;
            top: 56%;
            right: 5px;
            width: 6px;
            height: 6px;

            // background: var(--el-color-danger);
            border: 1px solid #ffffff;
            border-radius: 50%;
          }
        }
        .doorInner_open {
          transform: rotateY(10deg) skewY(3deg);
          .doorHandler {
            background: var(--el-color-success);
          }
        }
      }
    }
    .room_2 {
      background: var(--el-color-primary);
      opacity: 0.7;
    }
    .room_1 {
      background: var(--el-color-error);
      opacity: 0.7;
    }
    .room_0 {
      background: var(--el-color-info);
      opacity: 0.7;
    }
  }
  .footer {
    box-sizing: border-box;
    display: flex;
    justify-content: flex-end;
    width: 100%;
    padding: 0 10px 10px;
    border-top: 1px solid #eeeeff;
  }
}
.searchBtn {
  margin-left: 20px;
}
.downloadExe {
  color: var(--el-color-danger);
  cursor: pointer;
}
.userCardInfo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  margin-bottom: 10px;
  .userCardInfo__avatar {
    width: 90px;
    height: 90px;
    margin-right: 10px;
    margin-bottom: 18px;
    background: #eeeeee;
    border: 1px solid #eeeeee;
    border-radius: 50%;
  }
  .userCardInfo__con {
    flex: 1;
  }
}
.printInfo {
  display: flex;
  flex-flow: column;
  align-items: center;
  justify-content: center;
  margin-top: -20px;
  margin-bottom: 20px;
  .printInfo__title {
    width: 100%;
    padding: 10px 0;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 1px solid #eeeeee;
  }
}
.noData {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  height: 0;
  font-size: 14px;
  color: #666666;
  text-align: center;
}
